﻿using System;
using Thinker.SignChannel.Results;
using Volo.Abp.Domain.Entities.Auditing;

namespace Thinker.SignChannel.Entities;

public class PersonTime : AuditedAggregateRoot<Guid>
{
    protected PersonTime()
    {
        SignResult = SignResult.None;
    }

    public PersonTime(Guid id, Guid personId, Guid timeId) : base(id)
    {
        PersonId = personId;
        TimeId = timeId;
        SignResult = SignResult.None;
    }


    public Guid PersonId { get; set; }
    public Guid TimeId { get; set; }
    public Guid? RecordId { get; set; }
    public SignResult SignResult { get; set; }
    public string? LeaveReason { get; set; }
}